//: C09:Access.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Inline access functions

class Access
{
    int i;
public:
    int read() const {
        return i;
    }
    void set(int ii) {
        i = ii;
    }
};

int main()
{
    Access A;
    A.set(100);
    int x = A.read();
} ///:~
